function ret=inverse_view(view)
 ret="";
 i=0;
 while (i<length(view))
  c=view(length(view)-i);
  if(c=="t")
   ret=strcat(ret,"T");
  endif
  if(c=="T")
   ret=strcat(ret,"t");
  endif
  if(c=="H")
   ret=strcat(ret,"H");
  endif
  i=i+1;
 endwhile
endfunction 
